<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<HEAD><TITLE>个人客户开户</TITLE><LINK rel=stylesheet type=text/css href="/loan/common/sharecss/ceng.css"></LINK><LINK rel=stylesheet type=text/css href="/loan/common/sharecss/style51.css" media=screen></LINK>
<SCRIPT type=text/javascript src="/loan/dwr/engine.js"></SCRIPT>

<SCRIPT type=text/javascript src="/loan/dwr/util.js"></SCRIPT>

<SCRIPT type=text/javascript src="/loan/dwr/interface/Share_ceng.js"></SCRIPT>

<SCRIPT type=text/javascript src="/loan/common/sharejs/nav.js"></SCRIPT>

<SCRIPT type=text/javascript src="/loan/common/sharejs/validate.js"></SCRIPT>

<SCRIPT type=text/javascript src="/loan/common/sharejs/jquery-1.4.2.min.js"></SCRIPT>
<!--<script type="text/javascript" src="/loan/common/sharejs/jquery.ui.draggable.js"></script>--><!-- 日期控件 -->
<SCRIPT language=javascript type=text/javascript src="/loan/common/sharejs/DatePicker/WdatePicker.js"></SCRIPT>
<LINK rel=stylesheet type=text/css href="http://localhost:8088/loan/common/sharejs/DatePicker/skin/WdatePicker.css"><LINK rel=stylesheet type=text/css href="/loan/common/sharejs/DatePicker/skin/default/datepicker.css"><!-- 日期控件 --><!-- 提示框 -->
<SCRIPT type=text/javascript src="/loan/common/sharejs/jquery.alerts.js"></SCRIPT>

<SCRIPT type=text/javascript src="/loan/common/sharejs/jquery-ui-1.8.5.custom.js"></SCRIPT>
<LINK rel=stylesheet type=text/css href="/loan/common/sharecss/jquery.alerts.css" media=screen></LINK><!-- xyTree --><!-- 提示框 --><!-- 填充IPage中获取的数据到Div中 -->
<SCRIPT type=text/javascript src="/loan/common/sharejs/pageFillData.js"></SCRIPT>
<!-- 填充IPage中获取的数据到Div中end -->
<SCRIPT type=text/javascript>
/**
var url=document.URL;
url=url.replace("/","\\");
var url_chefen=url.split("/");
var url_sel=new Array();
var nav="";
var j=0;
if(url_chefen.length>0){
	DWREngine.setAsync(false);   //设置成同步
	for(var i=url_chefen.length-1;i>-1;i--){
		if(url_chefen[i]=="loan"){
			break;
		}else{
			url_sel[j]=url_chefen[i];
			//alert(url_chefen[i]);
			j++;
		}
	}
	var menu=new Array(2);
	for(var k=0;k<url_sel.length;k++){
		if(url_sel[k].length>0&&k==url_sel.length-1){
			menu[0]=url_sel[k];
			Share_ceng.menu_nav(menu,function(data){
				if(data[0]!=undefined){
					if(data[0].length>0){
						nav=data[0]+nav;
						menu[1]=data[1];
					}
				}
			});
			if(nav.length>3){
				if(nav.substr(0,3)=="-->"){
					nav=nav.substr(3);
				}
			}
		}else if(url_sel[k].length>0){
			menu[0]=url_sel[k];
			Share_ceng.menu_nav(menu,function(data){
				if(data[0]!=undefined){
					if(data[0].length>0){
						nav="-->"+data[0]+nav;
						menu[1]=data[1];
					}
				}
			})
		}
		if(nav.length<1){
			break;
		}
	}
	if(window.parent.document.getElementById("position")!=undefined&&nav.length>0){
		window.parent.document.getElementById("position").innerText=nav;
	}
	DWREngine.setAsync(true); //设置成异步
}**/
//nav.js已经存在
</SCRIPT>

<SCRIPT>
function do_download(filename,type,localname){
    
	if(typeof(type)==undefined){
		type='2';
	}else if(type.length==0){
		type='2';
	}
	if(typeof(localname)==undefined){
		localname="";
	}
	Share_ceng.getDownfile(type,filename,function(data){
	
	    
		if(data!=undefined){
			if(data.length>0){
				var str=data.split("*@@*");
				
				if(str[0]=="error"){
					jAlert('1',"<strong>"+str[1]+"</strong>", '文件下载');
				}else{
				
				
				    var tmpAry=data.split("\\");
				    var filePath="";
				    var fileNme=tmpAry[tmpAry.length-1];
				    
				    
				    
				    
					window.location.href="/loan/upload/download/download.jsp?filepath="+data+"&filename="+fileNme;
				}
			}else{
				jAlert('1',"<strong>获取文件下载路径错误！</strong>", '文件下载');
			}
		}else{
			jAlert('1',"<strong>获取文件下载路径失败！</strong>", '文件下载');
		}
	});
}


function logout(){
  alert('会话过期，为确保安全，请您重新登录');
  	window.top.location.href="/loan/login.do?method=logout";
}
function enter(){
		 var code = window.event.keyCode;   
		 if(code==13){    
    			my_search();   
  		 }   
	}
$(document).ready(function(){
	var temp=$('#btnsreatch');
	var a='搜';
	var tmp=$('input[value*='+a+']');//模糊匹配出'搜'的属性注册事件
	if(tmp!="undefined"&&tmp!=null){
		for(var i=0;i<tmp.length;i++){
			tmp.get(i).onkeyup=enter;
		}
	}
	
//	$.each(tmp,function(){
//		alert(tmp.get(0).value);
		






// 	})
})
</SCRIPT>

<SCRIPT type=text/javascript> 
		   var  keepGoing=1;//离开页面时需要 判断 是否放弃本次操作  0:否；1:是
		</SCRIPT>

<SCRIPT type=text/javascript src="/loan/dwr/interface/clientOpen.js"></SCRIPT>

<SCRIPT type=text/javascript src="/loan/common/sharejs/khgl/initshow.js"></SCRIPT>

<SCRIPT type=text/javascript src="/loan/dwr/interface/transIDNum.js"></SCRIPT>

<SCRIPT type=text/javascript src="/loan/dwr/interface/checkCardService.js"></SCRIPT>

<SCRIPT type=text/javascript src="/loan/common/sharejs/khgl/idcheck.js"></SCRIPT>

<SCRIPT type=text/javascript src="/loan/common/sharejs/khgl/initshow.js"></SCRIPT>

<SCRIPT type=text/javascript>
   var openflag =1,pageno,pagesize,frm;
   
   $(function(){
 
		 	$('#tabs >li').click(function(){
							//获得点击的是第几个选项
							var index = $(this).attr('value');
			   if(keepGoing==0)
			  {
			     jConfirm('你确定要<strong>放弃</strong>本次操作吗？', '提示确认框', function(data)
				{
                        if(data)
                        {
                        keepGoing=1;
                            if(index!=openflag){
							     var mylink = '#link'+openflag;
							     $(mylink).removeClass('dd_over');
							      $(mylink).addClass('dd');
							      mylink = '#link'+index;
							      $(mylink).addClass('dd_over');
							       $(mylink).removeClass('dd');
							    $('.nr[value='+openflag+']').css('display','none');
								$('.nr[value='+index+']').css('display','block');
								openflag = index;
								}
		if(index!=2){
           $('#link2').css('display','none'); 
         }
                        }
                        else
                        {
                           return false;
                        }
         });
         }else
         {
                             if(index!=openflag){
							     var mylink = '#link'+openflag;
							     $(mylink).removeClass('dd_over');
							      $(mylink).addClass('dd');
							      mylink = '#link'+index;
							      $(mylink).addClass('dd_over');
							       $(mylink).removeClass('dd');
							    $('.nr[value='+openflag+']').css('display','none');
								$('.nr[value='+index+']').css('display','block');
								openflag = index;
								}
		if(index!=2){
           $('#link2').css('display','none'); 
         }
         
         }

		})
		})
				
		//身份证转换和验证
		function valShf(){
				 DWREngine.setAsync(false);
		 		var name5 = document.all("name5").value;
		  	 	var name6 = document.all("name6").value;
		
				while(name6.indexOf(" ")!=-1){
				 name6=name6.replace(" ","");
				}
				document.all("name6").value=name6;
				if(name6==null||name6==""){
				   jAlert('1',"证件号码不能为空!","系统提示!");
				   return false;
				}
		 	    if(name5=="0"){
			  	  //15位转18位
			     transIDNum.transIDNum(name6,function (rs){
				     if(rs=="incorrect"){
				       jAlert('1',"身份证号输入有误!","系统提示!");
				       return false;
				     }
				    document.all("name6").value=rs;
				    document.all("birthdate").value=rs.substring(6,14);//设置出生日期
				    document.all("sex").value= (parseInt(rs.charAt(16))%2==0? "2":"1");//设置性别	
			     });
		  	 }
		}
				

<!--保存转向基本信息调用方法 -->
function submit_save(frm){
		DWREngine.setAsync(false);       
		if(!(isNull(frm.name2,"客户名称"))) {
			return false;			
		}			
		if(!(containBlank(frm.name2,"客户名称"))) {
	  		return false;			
		}			
	    if(!(testNumber2208229(frm.name2,"客户名称"))) {
              return false;			
	    }		
    	if(!(isNull(frm.name5,"证件类别"))) {
			return false;			
		}							
    	if(!(isNull(frm.name6,"证件号码"))) {
			return false;			
		}

 		var name5 = document.all("name5").value;
  	 	var name6 = document.all("name6").value;
		var mydata;
		DWREngine.setAsync(false);
 		var name5 = document.all("name5").value;
  	 	var name6 = document.all("name6").value;
  	 	//检查身份证号
  	 	var wrongflag,existflag,clientnameflag;
 	    if(name5=="0"){
	  	  //15位转18位
	     transIDNum.transIDNum(name6,function (rs){
	     wrongflag=rs;
	  document.all("name6").value=rs;
	  checkCardService.checkCompanyLicence1(name6,function(data){
      mydata=data
      });
	  checkCardService.checkClientName(frm.name2.value,name6,function(data){
	     clientnameflag=data;
	  })
	  });
  	 }  //检查身份证号  end
    if(wrongflag=="incorrect"){
      jAlert("1","证件号码输入有误","系统提示!");
       frm.name6.focus();
      return false;
    }
          if(mydata != 0){
	      jAlert("1","该身份证号已经注册","系统提示!");
	      frm.name6.focus();
	      return false;
      }
      if(clientnameflag==1){
          jAlert("1","该身份证号对应姓名与客户家庭成员及配偶表中姓名不一致!","系统提示!");
          frm.name2.focus();
          return false;
      }
	var formmap = DWRUtil.getValues('myform1');
    clientOpen.insertPersonClient(formmap,function(data){
//    $('#div3').html(data);
    })		
   window.open("personInfo.jsp?idnum="+name6+"&telno=1046","_self","");
   keepGoing=1;
}
<!--返回客户信息列表 -->
    

	//$(document).load(my_search(1));
	$(document).load(setsession_jsp(''));
	function my_search(pageno,pagesize){
	    var zntext=$('#znsearch').val();
		var type=2;
		clientOpen.getClientList(zntext,"","",type,pageno,pagesize,function(data){
		  fillData('#clientlist',data);
		});
	}
	
	<!--双击时进入添加信息页面-->
	function addinfo(cifno,cifname,telno){
	    window.open("personInfo.jsp?cifno="+cifno+"&cifname="+cifname+"&telno="+telno,"_self","");
	}
	//进入客户资料登记选项卡
	function client_add(){
	  keepGoing=0;
	  frm=document.getElementById('myform1');
	  setOneLiTabShow('2','2');
	  clearvalue(frm);
	  frm.name8.value="北京鼎信华铭";
	  frm.name9.value="孙美";
	}
	
	//返回列表页面
	function back(){
	  setOneLiTabShow('2','1');
	  $('#link2').css('display','none');
	}	
</SCRIPT>
</HEAD>
<BODY>
<DIV id=table class=table>
<DIV class=repeat>
<UL id=tabs class=tabs>
<LI id=link1 class=dd_over value=1 jQuery1362935141562="1">客户信息列表 </LI>
<LI style="DISPLAY: none" id=link2 class=dd value=2 jQuery1362935141562="2">客户资料登记 </LI></UL></DIV>
<DIV class=tablecard>
<DIV style="DISPLAY: block" id=div1 class=nr value="1">
<DIV class=divsreatch><INPUT class=divadd onclick=client_add() value=客户资料登记 type=button> 
<DIV class=sreatch>智能查询: <INPUT id=znsearch name=znsearch type=text> <INPUT id=btnsreatch onclick='my_search("1")' value="搜 索" type=button> </DIV></DIV><!-- 客户列表 -->
<DIV style="WIDTH: 100%; DISPLAY: block; HEIGHT: auto" id=clientlist class=divlist>
<TABLE id=datalist>
<TBODY>
<TR>
<TH onclick="setsession_jsp('cifno')">客户号 </TH>
<TH onclick="setsession_jsp('cifname')">客户姓名 </TH>
<TH onclick="setsession_jsp('idtype')">证件类型 </TH>
<TH onclick="setsession_jsp('idnum')">证件号 </TH>
<TH onclick="setsession_jsp('to_number(substr(wzd,1,length(wzd)-1))')">资料完整度 </TH>
<TH onclick="setsession_jsp('CHGGRADE(grade)')">用户评分 </TH>
<TH onclick="setsession_jsp('GETOATLRNO(tel)')">登记人 </TH>
<TH onclick="setsession_jsp('GETORGNAME(brno)')">登记部门 </TH>
<TH onclick="setsession_jsp('txdate')">登记日期 </TH>
<TH onclick="setsession_jsp('')">操作 </TH></TR>
<TR class=js ondblclick="addinfo('20002781','方妍','0005')" tmpClass="js">
<TD>20002781</TD>
<TD>方妍</TD>
<TD>���֤</TD>
<TD>500226199008215334</TD>
<TD>40%</TD>
<TD>未评分</TD>
<TD>常晓华</TD>
<TD>郑州办事处</TD>
<TD>20110426</TD>
<TD><A onclick="addinfo('20002781','方妍','0005')" href="#">ȷ��</A></TD></TR>
<TR class=os ondblclick="addinfo('20002780','红英','0005')" tmpClass="os">
<TD>20002780</TD>
<TD>红英</TD>
<TD>���֤</TD>
<TD>50022619800411542X</TD>
<TD>40%</TD>
<TD>未评分</TD>
<TD>常晓华</TD>
<TD>郑州办事处</TD>
<TD>20110426</TD>
<TD><A onclick="addinfo('20002780','红英','0005')" href="#">ȷ��</A></TD></TR>
<TR class=js ondblclick="addinfo('20002779','新月','0005')">
<TD>20002779</TD>
<TD>新月</TD>
<TD>���֤</TD>
<TD>500226197006131701</TD>
<TD>40%</TD>
<TD>未评分</TD>
<TD>常晓华</TD>
<TD>郑州办事处</TD>
<TD>20110426</TD>
<TD><A onclick="addinfo('20002779','新月','0005')" href="#">ȷ��</A></TD></TR>
<TR class=os ondblclick="addinfo('20002778','俊朗','0005')" tmpClass="os">
<TD>20002778</TD>
<TD>俊朗</TD>
<TD>���֤</TD>
<TD>500226197007245452</TD>
<TD>40%</TD>
<TD>未评分</TD>
<TD>常晓华</TD>
<TD>郑州办事处</TD>
<TD>20110426</TD>
<TD><A onclick="addinfo('20002778','俊朗','0005')" href="#">ȷ��</A></TD></TR>
<TR class=js ondblclick="addinfo('20002777','采儿','0005')" tmpClass="js">
<TD>20002777</TD>
<TD>采儿</TD>
<TD>���֤</TD>
<TD>500226197003121209</TD>
<TD>40%</TD>
<TD>未评分</TD>
<TD>常晓华</TD>
<TD>郑州办事处</TD>
<TD>20110426</TD>
<TD><A onclick="addinfo('20002777','采儿','0005')" href="#">ȷ��</A></TD></TR>
<TR class=os ondblclick="addinfo('20002776','小雪','0005')" tmpClass="os">
<TD>20002776</TD>
<TD>小雪</TD>
<TD>���֤</TD>
<TD>500226197407257380</TD>
<TD>60%</TD>
<TD>未评分</TD>
<TD>常晓华</TD>
<TD>郑州办事处</TD>
<TD>20110426</TD>
<TD><A onclick="addinfo('20002776','小雪','0005')" href="#">ȷ��</A></TD></TR>
<TR class=js ondblclick="addinfo('20002775','冰冰','0005')" tmpClass="js">
<TD>20002775</TD>
<TD>冰冰</TD>
<TD>���֤</TD>
<TD>500226198703265064</TD>
<TD>60%</TD>
<TD>未评分</TD>
<TD>常晓华</TD>
<TD>郑州办事处</TD>
<TD>20110426</TD>
<TD><A onclick="addinfo('20002775','冰冰','0005')" href="#">ȷ��</A></TD></TR>
<TR class=os ondblclick="addinfo('20002774','小远','0005')" tmpClass="os">
<TD>20002774</TD>
<TD>小远</TD>
<TD>���֤</TD>
<TD>500226198406267581</TD>
<TD>40%</TD>
<TD>未评分</TD>
<TD>常晓华</TD>
<TD>郑州办事处</TD>
<TD>20110426</TD>
<TD><A onclick="addinfo('20002774','小远','0005')" href="#">ȷ��</A></TD></TR>
<TR class=js ondblclick="addinfo('20002773','李远翔','0005')" tmpClass="js">
<TD>20002773</TD>
<TD>李远翔</TD>
<TD>���֤</TD>
<TD>500226197909153530</TD>
<TD>60%</TD>
<TD>未评分</TD>
<TD>常晓华</TD>
<TD>郑州办事处</TD>
<TD>20110426</TD>
<TD><A onclick="addinfo('20002773','李远翔','0005')" href="#">ȷ��</A></TD></TR>
<TR class=os ondblclick="addinfo('20002772','费安妮','0005')" tmpClass="os">
<TD>20002772</TD>
<TD>费安妮</TD>
<TD>���֤</TD>
<TD>500226198703285081</TD>
<TD>60%</TD>
<TD>未评分</TD>
<TD>常晓华</TD>
<TD>郑州办事处</TD>
<TD>20110426</TD>
<TD><A onclick="addinfo('20002772','费安妮','0005')" href="#">ȷ��</A></TD></TR>
<TR class=page>
<TD colSpan=20>
<DIV style="FLOAT: left; align: left">&nbsp;ÿҳ��ʾ<SELECT id=pageSize onchange="javascript:goSearch('1', this.value)"><OPTION value=5>5</OPTION><OPTION selected value=10>10</OPTION><OPTION value=15>15</OPTION><OPTION value=20>20</OPTION><OPTION value=25>25</OPTION><OPTION value=50>50</OPTION><OPTION value=100>100</OPTION></SELECT>���¼</DIV>
<DIV style="FLOAT: right; align: right">��1ҳ/��8ҳ ��75���¼<A style="TEXT-DECORATION: none" href="javascript:goSearch('1','10')">&nbsp;��ҳ</A><A style="TEXT-DECORATION: none" href="javascript:goSearch('2','10')">&nbsp;��һҳ</A><A style="TEXT-DECORATION: none" href="javascript:goSearch('8','10')">&nbsp;βҳ</A>&nbsp;��ת��:<SELECT id=pageNo onchange=goSearch(this.value,10) name=pageNo><OPTION selected value=1>1</OPTION><OPTION value=2>2</OPTION><OPTION value=3>3</OPTION><OPTION value=4>4</OPTION><OPTION value=5>5</OPTION><OPTION value=6>6</OPTION><OPTION value=7>7</OPTION><OPTION value=8>8</OPTION></SELECT></DIV></TD></TR></TBODY></TABLE></DIV></DIV>
<DIV style="WIDTH: 100%; DISPLAY: none; HEIGHT: auto" id=div2 class=nr value="2">
<FORM id=myform1 method=post name=myform1>
<DIV id=person class=divsmalltable>
<TABLE>
<TBODY>
<TR>
<TD class=jstd>客户姓名： </TD>
<TD class=ostd><INPUT id=name2 name=name2 maxLength=30 type=text><FONT color=red>*</FONT> </TD></TR>
<TR class=ostr>
<TD class=jstd>证件类型： </TD>
<TD class=ostd><SELECT id=name5 disabled size=1 name=name5> <OPTION selected value=0>身份证</OPTION></SELECT> </TD></TR>
<TR>
<TD class=jstd>证件号码： </TD>
<TD class=ostd><INPUT onblur=valShf(); id=name6 name=name6 maxLength=18 type=text><FONT color=red>*</FONT> </TD></TR>
<TR class=ostr>
<TD class=jstd>性别： </TD>
<TD class=ostd><SELECT disabled size=1 name=sex> <OPTION selected value=1>男</OPTION> <OPTION value=2>女</OPTION></SELECT> </TD></TR>
<TR>
<TD class=jstd>出生日期： </TD>
<TD class=ostd><INPUT disabled name=birthdate type=text> </TD></TR>
<TR class=ostr>
<TD class=jstd>登记部门： </TD>
<TD class=ostd><INPUT disabled name=name8 value=北京鼎信华铭 type=text> </TD></TR>
<TR>
<TD class=jstd>登记人： </TD>
<TD class=ostd><INPUT disabled name=name9 value=孙美 type=text> </TD></TR>
<TR class=ostr>
<TD class=jstd colSpan=2>
<DIV class=operation><INPUT class=btnok onclick=submit_save(this.form) name=submit1 value=保存 type=button> <INPUT class=btnok onclick=back() name=submit2 value=取消 type=button> </DIV></TD></TR></TBODY></TABLE>
<SCRIPT type=text/javascript>addformcolor("person")</SCRIPT>
</DIV></FORM></DIV></DIV></DIV></BODY>
</html>
